package com.dao;

import com.entity.Working;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface WorkingMapper {
    /**
     * 查询所有
     * @param working
     * @return
     */
    List<Working> getList(Working working);

    /**
     * 查询记录数
     * @return
     */
    List<Working> count(@Param("title")String title);

    /**
     * 根据编号查询信息
     * @param id
     * @return
     */
    List<Working> getId(@Param("id")Integer id);

    /**
     * 添加
     * @param working
     * @return
     */
    int getAdd(Working working);

    /**
     * 修改
     * @param working
     * @return
     */
    int xiuGai(Working working);
}
